import { AxiosAccount } from '../utils/http/request';

//申请管理
enum applyApi {
  list = '/store/apply/list',
  examine = '/store/apply/examine',
  detail = '/store/apply/detail',
  edit = '/store/apply/edit',
}

//店铺管理
enum shopListApi {
  list = '/store/list',
  examine = '/store/apply/examine',
  detail = '/store/apply/detail',
  edit = '/store/apply/edit',
}

//申请列表
export const applyList = (data: any) =>
  AxiosAccount.request({
    url: applyApi.list,
    method: 'post',
    data,
  });
//申请审核
export const applyExamine = (data: any) =>
  AxiosAccount.request({
    url: applyApi.examine,
    method: 'post',
    data,
  });
//申请详情
export const applyDetail = (data: any) =>
  AxiosAccount.request({
    url: applyApi.detail,
    method: 'post',
    data,
  });
//申请修改
export const applyEdit = (data: any) =>
  AxiosAccount.request({
    url: applyApi.edit,
    method: 'post',
    data,
  });

//店铺列表
export const shopList = (data: any) =>
  AxiosAccount.request({
    url: shopListApi.list,
    method: 'post',
    data,
  });
